package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author HuiCL
 * @version 1.0
 * @date 2022/7/25 17:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Expenditure {
    // 编号
    private Integer id;
    // 支出人
    private String payor;
    // 支出人的联系方式
    private String contactPayor;
    // 资金用途
    private String useOfAssets;
    // 支出金额
    private Integer expenseAmount;
    // 支出日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date disbursementDate;
}
